<template>
  <div class="Header">
    <div class="box">
      <div class="left">
        <img src="@/assets/logo.svg" alt="" />
        <h2>电商后台管理系统</h2>
      </div>
      <div class="right">
        <el-button type="info" size="default" @click="quit()">退出</el-button>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useCounterStore } from '@/stores/counter'
const counterStore = useCounterStore()
function quit() {
  counterStore.DelToken()
  location.reload()
}
</script>

<style scoped lang="scss">
.Header {
  .box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    border-bottom: 1px solid #ccc;
    .left {
      display: flex;
      align-items: center;
      img {
        width: 50px;
        height: 50px;
        margin-right: 10px;
      }
      h2 {
        color: #e4e8ce;
      }
    }
  }
}
</style>
